﻿@model _315Singleton.Models.TodoIndexVm
@{
    ViewBag.Title = "Index";
}

<h2>@Model.Greeting</h2>

<div>
    @foreach (var t in Model.Tasks)
    {
        <div>@Html.ActionLink("Edit", "Update", "Todo", new { Id = t.Id }, new { @class = "btn btn-primary" }) @t.Id, @t.Task, @t.IsCompleted</div>
        <div>@Html.ActionLink("Delete", "Delete", "Todo", new { Id = t.Id }, new { @class = "btn btn-danger" })</div>
    }
</div>

